home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 115
/
FreelogNo115-MaiJuin2013.iso
/
Systeme
/
Right Click Enhancer
/
Right Click Enhancer Setup.exe
/
Help.chm
/
skin.xsl
< prev
next >
Wrap
Extensible Markup Language
|
2013-04-06
|
4KB
|
104 lines
<?xml version="1.0" encoding="utf-8"?>
<!-- ****************************************************************
CHMTemplate Default Skin XSL Template
Copyright (c) Dmitry Baranov
***************************************************************** -->
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:chmcode="uuid:E6CC3520-5F8A-463B-B1B6-A81690E27E9D"
exclude-result-prefixes="xsl msxsl xhtml chmcode"
>
<xsl:output
method="xml"
indent="no"
encoding="utf-8"
omit-xml-declaration="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
/>
<xsl:param name="Parameters_SourceCodeHighlighterTheme" select="'shThemeDefault.css'" />
<xsl:include href="../SharedTemplates.xsl"/>
<!-- **************************************************************
Formatting HTML
****************************************************************-->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="xhtml:html">
<html xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates select="@* | node()"/>
</html>
</xsl:template>
<xsl:template match="xhtml:head">
<head xmlns="http://www.w3.org/1999/xhtml">
<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:title" />
<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:meta" />
<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:link" />
<!-- Highlight files -->
<script type="text/javascript" src="hl/scripts/shCore.js" xmlns="http://www.w3.org/1999/xhtml">//</script>
<script type="text/javascript" src="hl/scripts/shAutoloader.js" xmlns="http://www.w3.org/1999/xhtml">//</script>
<link type="text/css" rel="stylesheet" href="hl/styles/shCore.css" xmlns="http://www.w3.org/1999/xhtml"/>
<link type="text/css" rel="stylesheet" href="hl/styles/shCoreDefault.css" xmlns="http://www.w3.org/1999/xhtml"/>
<link type="text/css" rel="stylesheet" href="hl/styles/{$Parameters_SourceCodeHighlighterTheme}" xmlns="http://www.w3.org/1999/xhtml"/>
<!-- Skin files -->
<link rel="stylesheet" type="text/css" href="Skin.css" xmlns="http://www.w3.org/1999/xhtml"/>
<script language="JavaScript" type="text/javascript" src="Skin.js" xmlns="http://www.w3.org/1999/xhtml">//</script>
</head>
</xsl:template>
<xsl:template match="node()[@id='heading-title']">
</xsl:template>
<!-- This template defines HTML page layout -->
<xsl:template match="xhtml:body">
<xsl:copy>
<!-- Logo -->
<div id="header" xmlns="http://www.w3.org/1999/xhtml">
<div class="copyright">
<xsl:value-of select="/xhtml:html/xhtml:head/xhtml:meta[@name='chmtemplate:project-title']/@content"/>
</div>
<h1>
<img src="Logo.png" align="absmiddle" style="margin-right:1em" />
<xsl:value-of select="/xhtml:html/xhtml:head/xhtml:title"/>
</h1>
</div>
<!-- Content -->
<div id="content" xmlns="http://www.w3.org/1999/xhtml">
<!-- SubToc-->
<xsl:call-template name="InsertSubToc" />
<!-- Body text -->
<xsl:apply-templates select="@* | node()"/>
</div>
<!-- Footer -->
<div id="footer" xmlns="http://www.w3.org/1999/xhtml">
<div class="copyright">
<xsl:value-of select="/xhtml:html/xhtml:head/xhtml:meta[@name='chmtemplate:copyright']/@content" disable-output-escaping="yes"/>
</div>
</div>
<script type="text/javascript" xmlns="http://www.w3.org/1999/xhtml">
InitSyntaxHighlighter();
</script>
</xsl:copy>
</xsl:template>
<!-- Fixing MS XHTML bug that emits wrong closing tag -->
<xsl:template match="xhtml:img | xhtml:br">
<xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>